// ****************************************************************************
//	Copyright (c) 2011 Daniel Watman
//	http://www.keycommander.net/
// ****************************************************************************
//	This program is free software: you can redistribute it and/or modify
//	it under the terms of the GNU General Public License as published by
//	the Free Software Foundation, either version 3 of the License, or
//	(at your option) any later version.
//	
//	This program is distributed in the hope that it will be useful,
//	but WITHOUT ANY WARRANTY; without even the implied warranty of
//	 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//	GNU General Public License for more details.
//	
//	You should have received a copy of the GNU General Public License
//	along with this program.  If not, see <http://www.gnu.org/licenses/>.
// *********************************************************************
//	File:	SPI.h
//	Purpose:	Basic functions to communicate with MAX3420 over SPI
//	Author:	Daniel Watman
//	Created: 2011.02.28
//	Updated:	2011.02.28
//	Version:	0.1
// *********************************************************************

#include "types.h"

u08 SPI_byte(u08);			// send/receive a single SPI byte (does not control SS pin)
u08 SPI_RWreg(u08, u08);	// send command + read/write 1 data byte
void USB_readFIFO(u08, u08 *, u08);
void USB_writeFIFO(u08, u08 *, u08);
